package com.shadow.disnet.disrutor;

import com.lmax.disruptor.EventHandler;

/**
 * 事件处理类
 * */
public class ShadowEventHandler implements EventHandler<Event> {


    /**
     * 事件投递后处理逻辑在这
     * @param event 事件
     * @param sequence 序列号
     * @param endOfBatch
     * @throws Exception
     */
    @Override
    public void onEvent(Event event, long sequence, boolean endOfBatch) throws Exception {
        event.handle();
    }
}
